package com.ruoyi.project.erp.checkstock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.erp.checkstock.mapper.CheckstockMapper;
import com.ruoyi.project.erp.checkstock.domain.Checkstock;
import com.ruoyi.project.erp.checkstock.service.ICheckstockService;
import com.ruoyi.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-08
 */
@Service
public class CheckstockServiceImpl implements ICheckstockService 
{
    @Resource
    private CheckstockMapper checkstockMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public Checkstock selectCheckstockById(Long id)
    {
        return checkstockMapper.selectCheckstockById(id);
    }

    @Override
    public String selectMaxCode() {
        return checkstockMapper.selectMaxCode();
    }

    @Override
    public String selectMid() {
        return checkstockMapper.selectMid();
    }

    @Override
    public List<Checkstock> selectCheckStockListQuery(Checkstock checkstock, String beginTime, String endTime,String permit) {
        return checkstockMapper.selectCheckStockListQuery(checkstock,beginTime,endTime,Convert.toStrArray(permit));
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param checkstock 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Checkstock> selectCheckstockList(Checkstock checkstock)
    {
        return checkstockMapper.selectCheckstockList(checkstock);
    }

    @Override
    public List<Checkstock> selectCheckstockListPermit(Checkstock checkstock, String permit) {
        return checkstockMapper.selectCheckstockListPermit(checkstock,Convert.toStrArray(permit));
    }

    @Override
    public List<Checkstock> queryCheckstockList(long[] rowsId) {
        return checkstockMapper.queryCheckstockList(rowsId);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param checkstock 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertCheckstock(Checkstock checkstock)
    {
        return checkstockMapper.insertCheckstock(checkstock);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param checkstock 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateCheckstock(Checkstock checkstock)
    {
        return checkstockMapper.updateCheckstock(checkstock);
    }

    @Override
    public int disReviewCheckstock(Checkstock checkstock) {
        return checkstockMapper.disReviewCheckstock(checkstock);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCheckstockByIds(String ids)
    {
        return checkstockMapper.deleteCheckstockByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteCheckstockById(Long id)
    {
        return checkstockMapper.deleteCheckstockById(id);
    }
}
